Is there a way for Typescript to detect correct overloaded function on composition

welcome to shbcf.ru